<!-- 达播报表 -->
<template>
  <div class="mainTable">
    <BaseTable :query="query" :tableItems="tableItems" :updateItems="updateItems" :optionList="optionList"
      :methodParam="methodParam" :Btn="Btn" menuName="logRecord" pageName="mainTable" />
  </div>
</template>
<script>
import dayjs from "dayjs"
import BaseTable from "../../table/baseTable.vue";
export default {
  name: "dbbb",
  data() {
    return {
      //后端人员修改-S
      //查询参数
      query: [
        { prop: "targetLiver", type: "input", placeholder: "请输入", value: "", name: "达人" },
        {
          prop: "searchTime", type: "time", placeholder: "",
          // value: GlobalSetting.fakeTime ?? [dayjs(new Date()).add(-1, 'days').format("YYYY-MM-DD"), dayjs(new Date()).format("YYYY-MM-DD")],
          // value:["2023-01-01","2024-01-01"],
          value:[dayjs(new Date()).add(-12, "months").format("YYYY-MM-DD"),dayjs(new Date()).add(-1, "day").format("YYYY-MM-DD")],
          name: "查询时间"
        },
      ],
      //表格表头
      tableItems: [

        { name: "数据统计时间", prop: "数据统计时间" ,align: "left" },
        // { name: "直播日期", prop: "stat_time" },
        { name: "达人", prop: "达人"   ,align: "left" },
        { name: "69码", prop: "69码"  ,align: "left"  ,width:"160"},
        { name: "直播时长", prop: "直播时长"  },
        { name: "直播次数", prop: "直播次数"  },
        { name: "计算直播数", prop: "计算直播数" },
        { name: "直播间最高在线人数", prop: "直播间最高在线人数"  },
        { name: "直播间平均在线人数", prop: "直播间平均在线人数"  },
        { name: "直播间商品观看-成交率(次数)", prop: "直播间商品观看-成交率(次数)"  },
        { name: "直播间成交金额", prop: "直播间成交金额"  },
        { name: "直播间退款金额", prop: "直播间退款金额"  },
        { name: "直播实收", prop: "直播实收"  },
        { name: "直播开单销售额", prop: "直播开单销售额"  },
        { name: "直播服务费", prop: "直播服务费"  },
        { name: "直播佣金", prop: "直播佣金"  },
        { name: "直播折扣率", prop: "直播折扣率"  },
        { name: "直播赠品费率", prop: "直播赠品费率"  },
        { name: "直播总费率", prop: "直播总费率"  },
        { name: "直播roi", prop: "直播roi"  },

      ],
      //增删查改的对象属性
      updateItems: [//edit是回复
        { name: "文件名称", prop: "fileName", type: "input", disabled: true },
        { name: "上传类型", prop: "uploadType", type: "select" },
        { name: "备注", prop: "remark", type: "textarea" },
        { name: "上传文件", prop: "fileAdd", type: "upload" },
      ],
      //增删查改的对象属性的下拉select或者级联cascader
      optionList: {
        unit: [
          {label: "日", value: "日" },
          {label: "周", value: "周" },
          {label: "月", value: "月" },
          {label: "年", value: "年" },
        ]
      },
      //增删查改方法参数
      methodParam: "printDyFlagshipStoreLivingRoomDayStatExe",
      //自定义btn功能
      Btn: {
        search: true, //查询按钮
        add: false, //添加按钮
        edit: false, //回复按钮
        detail: false, //详情按钮
        delete: false, //删除按钮
        deletes: false, //批量删除按钮
        export: true, //导出按钮
        templateDownload: false, //模板下载按钮
        upload: false, //上传按钮
      },
      //后端人员修改-E
    };
  },
  components: {
    BaseTable
  },
  created() {
    let _this = this

  }
};
</script>
<style scoped lang="less">
.mainTable {
  background-color: #f1f2f9;
}
</style>
  